package com.libbase.kotlin

import com.chan.net.Result
import com.libbase.bean.NyqfBean
import com.libbase.http.Http
import com.libbase.http.cancelTag
import com.libbase.kotlin.presenter.NyqfContract
import io.reactivex.Flowable


class NyqfModel : NyqfContract.Model {
    override fun destroy() {
        cancelTag("raw/master/nyqf_titles.json")
    }

    override fun getTitles(): Flowable<Result<NyqfBean>>? {
        return getHttp().getTitles()
    }

    override fun getHttp(): NyqfContract.Api {
        return Http.getNyqfRetrofit(NyqfContract.Api::class.java)
    }
}